package ui;

import java.io.*;
/**
 * Textual user input functions
 * 
 * @author Adam Bell
 *
 */
public class UserInput {
	InputStreamReader stdin;
	BufferedReader console;
	
	/**
	 * Constructor
	 */
	public UserInput() {
		// create streamreader inputs
		stdin = new InputStreamReader(System.in);
		console = new BufferedReader(stdin);
	}
	
	/**
	 * Prompts user for an input value
	 * 
	 * @return User input
	 */
	public String getString() {
		
		//initialise variables
		String inputValue = "";
		
		System.out.print("fastDDF>");
		
		try {
			inputValue = console.readLine();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return inputValue;
		
	}

}

